﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Cabal
{
    public partial class SoulMain : Form
    {
        public SoulMain()
        {
            InitializeComponent();
            flTop.RightMouse = false;
        }

        private void SoulMain_Load(object sender, EventArgs e)
        {
        }

        private void flTop_FSCommand(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FSCommandEvent e)
        {
            FSCommandProc(e.command, e.args);
        }

        void FSCommandProc(string command, string arg)
        {
            switch (command)
            {
                case "ui:exit":
                    this.flTop.StopPlay();
                    this.Close();
                    break;
                case "ui:minisize":
                    this.WindowState = FormWindowState.Minimized;
                    break;
            }
        }
    }
}